const axios = require("axios").default
const cheerio = require("cheerio")

async function getBooks(){
    const res = await axios.get("https://book.douban.com/")
    return res.data
}

async function getBooksList(){
    const html = await getBooks()
    const $ = cheerio.load(html)
    
    const list = $("#content .gard-16-8 li")
    console.log(list.length);
}

getBooksList()

